// vite.config.ts
import { defineConfig } from "file:///D:/project/js/chat-room-code/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/project/js/chat-room-code/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import dts from "file:///D:/project/js/chat-room-code/node_modules/vite-plugin-dts/dist/index.mjs";
var vite_config_default = defineConfig({
  plugins: [vue(), dts({
    // 这里定义了需要生成d.ts文件的目录，如果有多个目录，可以使用数组
    include: ["src/packages/**/*.{vue,ts}"]
  })],
  build: {
    // 打包后的文件输出目录
    outDir: "chat-room-npm",
    lib: {
      //指定组件编译入口文件
      entry: "./src/packages/index.ts",
      // 组件库名称
      name: "ViteVue3TsTestFjc",
      // 文件名称
      fileName: "index"
    },
    rollupOptions: {
      // 确保外部化处理那些你不想打包进库的依赖
      external: ["vue"],
      output: {
        exports: "named",
        // 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
        globals: {
          vue: "Vue"
        }
      }
    }
  },
  server: {
    port: 5178
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxwcm9qZWN0XFxcXGpzXFxcXGNoYXQtcm9vbS1jb2RlXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCJEOlxcXFxwcm9qZWN0XFxcXGpzXFxcXGNoYXQtcm9vbS1jb2RlXFxcXHZpdGUuY29uZmlnLnRzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ltcG9ydF9tZXRhX3VybCA9IFwiZmlsZTovLy9EOi9wcm9qZWN0L2pzL2NoYXQtcm9vbS1jb2RlL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvb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